package View;

/**
 * Classe responsavel pelo conteudo exibido na sprite do zumbi.
 * 
 * @author Edjane Catolle, Igor Henrique, Luiz Augusto, Vladmir Chicarolli
 * @version 1.0.0
 * @since 05/31/2011
 */

import java.util.List;
import Model.ImagesManager;
import Model.ZombieModel;

public class ZombieView extends BaseView
{
	List<ZombieModel> zombies;
	
	public void UpdateZombieList(List<ZombieModel> list)
	{
		zombies = list;
	}
	
	public void DrawHandler() 
	{
		if(zombies != null)
		{
			for (ZombieModel zombie : zombies) 
			{
				switch (zombie.mType) 
				{
					case 0:
						buffer = ImagesManager.LoadImage(ImagesManager.zombie3SRC);
						break;
					case 1:
						buffer = ImagesManager.LoadImage(ImagesManager.zombie4SRC);
						break;						
					default:
						buffer = ImagesManager.LoadImage(ImagesManager.zombie2SRC);
						break;
				}				
				CustomImage(zombie.GetPosition());
				DrawBuffer();
			}
		}
	}
}
